<!--
<?php echo $this->element('search-form');?>    
<div class="sinhviens index">
	<h2><?php __('Sinhviens');?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php __('id');?></th>
			<th><?php __('mssv');?></th>
			<th><?php __('tongiao_id');?></th>
			<th><?php __('phuongxa_id');?></th>
			<th><?php __('dantoc_id');?></th>
			<th><?php __('hoten');?></th>
			<th><?php __('ngaysinh');?></th>
			<th><?php __('noisinh');?></th>
			<th><?php __('diachi');?></th>
			<th><?php __('phai');?></th>
			<th><?php __('sodienthoai');?></th>
			<th><?php __('email');?></th>
			<th><?php __('ngayvaodoan');?></th>
			<th><?php __('noivaodoan');?></th>
			<th><?php __('ngayvaodang');?></th>
			<th><?php __('noivaodang');?></th>
			<th><?php __('truongthanhdoan');?></th>
			<th><?php __('ghichu');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr> 
    <tr>
			<th><?php echo $this->Form->input('id');?></th>
			<th><?php echo $this->Form->input('mssv');?></th>
			<th><?php echo $this->Form->input('tongiao_id');?></th>
			<th><?php echo $this->Form->input('phuongxa_id',array('id'=>'px'));?></th>
			<th><?php echo $this->Form->input('dantoc_id');?></th>
			<th><?php echo $this->Form->input('hoten');?></th>
			<th><?php echo $this->Form->input('ngaysinh');?></th>
			<th><?php echo $this->Form->input('noisinh');?></th>
			<th><?php echo $this->Form->input('diachi');?></th>
			<th><?php echo $this->Form->input('phai');?></th>
			<th><?php echo $this->Form->input('sodienthoai');?></th>
			<th><?php echo $this->Form->input('email');?></th>
			<th><?php echo $this->Form->input('ngayvaodoan');?></th>
			<th><?php echo $this->Form->input('noivaodoan');?></th>
			<th><?php echo $this->Form->input('ngayvaodang');?></th>
			<th><?php echo $this->Form->input('noivaodang');?></th>
			<th><?php echo $this->Form->input('truongthanhdoan');?></th>
			<th><?php echo $this->Form->input('ghichu');?></th>
			<th class="actions"><?php __('Actions');?></th>
	</tr>
-->
	<?php
	$i = 0;
	foreach ($results as $sinhvien):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr class="objects">
		<td><?php echo $sinhvien['Sinhvien']['id']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['mssv']; ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($sinhvien['Tongiao']['tentongiao'], array('controller' => 'tongiaos', 'action' => 'view', $sinhvien['Tongiao']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($sinhvien['Phuongxa']['tenphuongxa'], array('controller' => 'phuongxas', 'action' => 'view', $sinhvien['Phuongxa']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($sinhvien['Dantoc']['tendantoc'], array('controller' => 'dantocs', 'action' => 'view', $sinhvien['Dantoc']['id'])); ?>
		</td>
		<td><?php echo $sinhvien['Sinhvien']['hoten']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['ngaysinh']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['noisinh']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['diachi']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['phai']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['sodienthoai']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['email']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['ngayvaodoan']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['noivaodoan']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['ngayvaodang']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['noivaodang']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['truongthanhdoan']; ?>&nbsp;</td>
		<td><?php echo $sinhvien['Sinhvien']['ghichu']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('View', true), array('action' => 'view', $sinhvien['Sinhvien']['id'])); ?>
			<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $sinhvien['Sinhvien']['id'])); ?>
			<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $sinhvien['Sinhvien']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $sinhvien['Sinhvien']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>